<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>纵轴居中</title>
		<style type="text/css">
			div{
				width: 300px;
				height: 300px;
				background-color: pink;
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				align-items: center;
			}
			span{
				width: 50px;
				height: 50px;
				background-color: palevioletred;
			}
		</style>
	</head>
	<body>
		<div>
			<span>1</span>
			<span>2</span>
			<span>3</span>
		</div>
	</body>
</html>
